<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<base href="<%=basePath%>">
<%@include file="/esayuiStyle.jsp" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<link rel="stylesheet" href="insdep/plus/upload/style.css" />
<link rel="stylesheet" href="css/fileImage.css" />
<script type="text/javascript" src="js/patient.js"></script>
<body>
<div id="tb">
	<form id="patientCondition">
		<label class="textbox-label textbox-label-left" for="#name" style="text-align: left; height: 26px; width:35px; line-height: 26px;">名称:</label>
		<input class="easyui-textbox" id="name" name="name" style="width:150px;" data-options="">
		<label class="textbox-label textbox-label-left" for="address.id" style="text-align: left; height: 26px; margin-left:15px; width:35px; line-height: 26px;">区县:</label>
	    <input id="address" class="easyui-combobox" name="address.id" style="width:150px;" data-options=" 
		      url:'address/selectAddressByTypeId?typeId=3', 
		      valueField:'id', 
		      textField:'name', 
		      panelheight:'auto'
	     ">

		<a id="btn" href="javaScript:void(0)" onclick="patientSetCondition()" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">serch</a>
		<a href="javascript:void(0)" class="easyui-linkbutton" onclick="addPatient();" data-options="iconCls:'icon-add',plain:true">添加</a>
		<a href="javascript:void(0)" class="easyui-linkbutton" onclick="editPatient();" data-options="iconCls:'icon-edit',plain:true">修改</a>
		<a href="javascript:void(0)" class="easyui-linkbutton" onclick="deletePatient();" data-options="iconCls:'icon-remove',plain:true">删除</a>
	</form>
</div>
<table id="patientTable" title="patientList" 
    data-options="url:'patient/patientList',fitColumns:true,striped:true,rownumbers:true,iconCls:'icon-search'">
    
    <thead>
		<tr>
			<th data-options="field:'asddsa',checkbox:true" ></th>
			<th data-options="field:'id',width:30,sortable:true,order:'desc'">病人编号</th>
			<th data-options="field:'identification',width:100,sortable:true">标识号</th>
			<th data-options="field:'name',width:100,sortable:true">病人名称</th>
			<th data-options="field:'gender',width:100,sortable:true,formatter:genderFormatter">性别</th>
			<th data-options="field:'age',width:100,sortable:true">年龄</th>
			<th data-options="field:'birthday',width:200,sortable:true">出生日期</th>
			<th data-options="field:'idCard',width:100,sortable:true">身份证号</th>
			<th data-options="field:'phone',width:100,sortable:true">联系电话</th>
			<th data-options="field:'address',width:100,sortable:true,formatter:addressFormatter">区县</th>
			<th data-options="field:'detailed',width:200,sortable:true">详细地址</th>
			<th data-options="field:'email',width:100,sortable:true">邮箱</th>
			<th data-options="field:'money',width:100">余额</th>
			<th data-options="field:'image',width:200,formatter:imageFormatter">头像</th>
		</tr>
    </thead>
</table>
</body>
</html>